Closed
Conversation
…ceholder for local debugging
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the .NET Agent Framework sample to improve compatibility with models that require default temperature settings and to support local debugging workflows that rely on an updatable BEARER_TOKEN.
Changes:
- Set
ChatOptions.Temperatureto1(with explanatory comments) to avoid model incompatibilities with non-default temperature values. - Add
Properties/launchSettings.jsonincludingBEARER_TOKENfor local debugging and token injection tooling.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| dotnet/agent-framework/sample-agent/Properties/launchSettings.json | Adds a debug profile with environment variables for Development, including BEARER_TOKEN. |
| dotnet/agent-framework/sample-agent/Agent/MyAgent.cs | Updates chat options to use Temperature = 1 and documents model constraints. |
dotnet/agent-framework/sample-agent/Properties/launchSettings.json
Outdated
Show resolved
Hide resolved
…m/lsl-2020/Agent365-Samples into users/shileiliu/FixDotNETAFSample
Author
|
Found the dev tools has updated the hit. Closing this now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ChatOptions.Temperaturefrom 0.2 to 1 because some models (such as o-series and preview ones such as gpt-5.2-chat) does not support Temperature parameter so it has to be default 1.a365 develop get-tokencan update it automatically for local debugging. (Refer to recent change in Fix bearer token approach for Dotnet AF Sample #170)